<?php

declare(strict_types=1);
/**
 * @copyright 深圳市易果网络科技有限公司
 * @version 1.0.0
 * @link https://dayiguo.com
 */
namespace App\Request\User\Advertising;

use App\Request\RequestAbstract;

/**
 * 广告获取验证器
 *
 * @author 谢声强(861167322@qq.com)
 */
class IndexRequest extends RequestAbstract
{
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize(): bool
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     */
    public function rules(): array
    {
        return [
            'type' => ['required', 'integer']
        ];
    }
}
